<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>اضافة مستعمل</title>

<!------------------------------ajax---------------------------->
<!-- <script type="text/javascript"  src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> 
    <script type="text/javascript"  src="http://malsup.github.com/jquery.form.js"></script> -->
	
<!---------------------for autocomplete--------------->
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.11.0.min.js');?>" ></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui-1.10.4/js/jquery-ui-1.10.4.min.js');?>" ></script>
	<link href="<?php echo base_url("assets/css/jquery-ui.css")?>" rel="stylesheet" type="text/css" />
<!---------------------for form css ----------------------->
	<link href="<?php echo base_url("assets/css/pure.css")?>" rel="stylesheet" type="text/css" />
<!---------------------for form validation ----------------------->
<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.validate.js');?>" ></script>
<!---------------------for form mask input ----------------------->
<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.mask.min.js');?>" ></script>


</head>
<body>
<?php
//include_once('header.php');

?>
<?php
echo form_open_multipart( base_url('compte_ctr/ajout_new_compte')); 
 

if($msg) echo '<script type="text/javascript">window.alert("'.$msg.'");</script>';


//echo('<strong style="background:red;">'.$msg.'</strong>');
?>

<form id="ajout_form" class="pure-form pure-form-stacked" method="POST" action="<?php echo base_url('compte_ctr/ajout_new_compte');?>">
    <fieldset>
        <legend  style="font-size: 120%">اضافة مستعمل:</legend>

        <div class="pure-g">
          
            <div class="pure-u-1 pure-u-md-1-3 "  style="width: 100%">
                <label for="numero" > الاسم  </label>
				<input class="ltr" id="dessignation" name="nom" type="text" value="" style="margin-left: 15%">
            
            </div>
		
            <div class="pure-u-1 pure-u-md-1-3 " style="width: 100%">
                <label for="article">اللقب </label>
                <input  class="ltr" id="prix" name="prenom" type="text" value="" style="margin-left: 15%">
	
            </div>
			
			 <div class="pure-u-1 pure-u-md-1-3 " style="width: 100%">
                <label for="article"> الكنية  </label>
                <input  class="ltr" id="prix" name="pseudo" type="text" value="" style="margin-left: 15%">
            </div>
            
			 <div class="pure-u-1 pure-u-md-1-3 " style="width: 100%">
                <label for="numero" >  مجموعة العمل  </label>
				<select name="group" style="margin-left: 15%">
				<?php
				for($i=0;$i<sizeof($groups);$i++){
					echo('<option value="'.$groups[$i]->id_groupe.'">'.$groups[$i]->nom.'</option>');
				}
				?>
					
				</select>
            </div>
			
            <div class="pure-u-1 pure-u-md-1-3 " style="width: 100%">
                <label for="numero" >  كلمة الدخول </label>
				<input class="ltr" id="quantite" name="pw" type="password" value="" style="margin-left: 15%">
                
            </div>
			
			 <div class="pure-u-1 pure-u-md-1-3 " style="width: 100%">
                <label for="numero"> تاكيد كلمة الدخول  </label>
				<input class="ltr" id="quantite" name="confirmation" type="password" value="" style="margin-left: 15%">
                
            </div>
			
	
		
        </div>

      <input type="submit" id="ajouter" value="اضافة"  class="pure-button pure-button-primary" />
    <a href="<?php echo base_url("/budget_ctr/load")?>" class="pure-button pure-button-primary">الغاء</a>
    </fieldset>
</form>

			

</body>

</html>